package com.example.demo.design.creational.singleton;

/**
 * 饿汉模式
 *
 * @author luowj12
 * @since 2021/5/6 14:56
 */
public class HungrySingleton {

    private static final HungrySingleton instance = new HungrySingleton();

    private HungrySingleton() {
    }
    public static HungrySingleton getInstance() {
        return instance;
    }

}
